package ru.pb.game.data.zip;

import java.io.ByteArrayInputStream;

/**
 * @author Felixx
 */
public class ZipData
{
	private final String _name;
	private byte[] _array;

	public ZipData(String name, byte[] array)
	{
		_name = name;
		_array = array;
	}

	public String getName()
	{
		return _name;
	}

	public ByteArrayInputStream getStream()
	{
		return new ByteArrayInputStream(_array);
	}

	public byte[] getArray()
	{
		return _array;
	}

	public void clear()
	{
		_array = null;
	}
}